package sixth.group.domain;

import java.util.Date;

public class Customer {
    private Integer cid;

    private String cusername;

    private String cpass;

    private String cimage;

    private String caddress;

    private String cphone;

    private Integer cbalance;

    private Integer cpermission;

    private Date cuptime;

    public Customer() {

    }

    public Customer(String cusername, String cpass, String cimage, String caddress, String cphone) {
        this.cusername = cusername;
        this.cpass = cpass;
        this.cimage = cimage;
        this.caddress = caddress;
        this.cphone = cphone;
    }

    public Customer(Integer cid, String cusername, String cpass, String cimage, String caddress, String cphone) {
        this.cid = cid;
        this.cusername = cusername;
        this.cpass = cpass;
        this.cimage = cimage;
        this.caddress = caddress;
        this.cphone = cphone;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "cid=" + cid +
                ", cusername='" + cusername + '\'' +
                ", cpass='" + cpass + '\'' +
                ", cimage='" + cimage + '\'' +
                ", caddress='" + caddress + '\'' +
                ", cphone='" + cphone + '\'' +
                ", cbalance=" + cbalance +
                ", cpermission=" + cpermission +
                ", cuptime=" + cuptime +
                '}';
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCusername() {
        return cusername;
    }

    public void setCusername(String cusername) {
        this.cusername = cusername;
    }

    public String getCpass() {
        return cpass;
    }

    public void setCpass(String cpass) {
        this.cpass = cpass;
    }

    public String getCimage() {
        return cimage;
    }

    public void setCimage(String cimage) {
        this.cimage = cimage;
    }

    public String getCaddress() {
        return caddress;
    }

    public void setCaddress(String caddress) {
        this.caddress = caddress;
    }

    public String getCphone() {
        return cphone;
    }

    public void setCphone(String cphone) {
        this.cphone = cphone;
    }

    public Integer getCbalance() {
        return cbalance;
    }

    public void setCbalance(Integer cbalance) {
        this.cbalance = cbalance;
    }

    public Integer getCpermission() {
        return cpermission;
    }

    public void setCpermission(Integer cpermission) {
        this.cpermission = cpermission;
    }

    public Date getCuptime() {
        return cuptime;
    }

    public void setCuptime(Date cuptime) {
        this.cuptime = cuptime;
    }
}